<div id="editProductPriceRuleModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b "><span>
                        <vc:i18n name="修改" namespace="editProductPriceRule"></vc:i18n>
                    </span></h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"> <span>
                                        <vc:i18n name='策略名称' namespace='editProductPriceRule'></vc:i18n>
                                    </span> </label>
                                <div class="col-sm-10">
                                    <input v-model="editProductPriceRuleInfo.ruleName" type="text"
                                        :placeholder="vc.i18n('必填，请填写策略名称','editProductPriceRule')"
                                        class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='策略类型' namespace='editProductPriceRule'></vc:i18n>
                                    </span></label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editProductPriceRuleInfo.ruleType">
                                        <option selected disabled value="">必填，请选择策略类型</option>
                                        <option value="1001">普通</option>
                                        <option value="2002">供应链</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='销售金额:' namespace='editProductPriceRule'></vc:i18n>
                                    </span></label>
                                <div class="col-sm-2">
                                    <select class="custom-select" v-model="editProductPriceRuleInfo.priceBase">
                                        <option selected disabled value="">必填，请选择</option>
                                        <option value="1">成本价</option>
                                        <option value="2" v-if="editProductPriceRuleInfo.ruleType == '2002'">销售价
                                        </option>
                                        <option value="3" v-if="editProductPriceRuleInfo.ruleType == '2002'">市场价
                                        </option>
                                        <option value="4" v-if="editProductPriceRuleInfo.ruleType == '2002'">业主价
                                        </option>
                                        <option value="5" v-if="editProductPriceRuleInfo.ruleType == '2002'">会员价
                                        </option>
                                    </select>
                                </div>
                                <div class="col-sm-7 padding-left-xs">
                                    <input v-model="editProductPriceRuleInfo.price" type="text"
                                        :placeholder="vc.i18n('百分之几','editProductPriceRule')" class="form-control">
                                </div>
                                <label class="col-form-label"><span>%</span></label>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='市场价:' namespace='editProductPriceRule'></vc:i18n>
                                    </span></label>
                                    <div class="col-sm-2">
                                        <select class="custom-select" v-model="editProductPriceRuleInfo.otPriceBase">
                                            <option selected disabled value="">必填，请选择</option>
                                            <option value="1">成本价</option>
                                            <option value="2" v-if="editProductPriceRuleInfo.ruleType == '2002'">销售价
                                            </option>
                                            <option value="3" v-if="editProductPriceRuleInfo.ruleType == '2002'">市场价
                                            </option>
                                            <option value="4" v-if="editProductPriceRuleInfo.ruleType == '2002'">业主价
                                            </option>
                                            <option value="5" v-if="editProductPriceRuleInfo.ruleType == '2002'">会员价
                                            </option>
                                        </select>
                                    </div>
                                <div class="col-sm-7 padding-left-xs">
                                    <input v-model="editProductPriceRuleInfo.otPrice" type="text"
                                        :placeholder="vc.i18n('百分之几','editProductPriceRule')" class="form-control">
                                </div>
                                <label class="col-form-label"><span>%</span></label>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='会员价:' namespace='editProductPriceRule'></vc:i18n>
                                    </span></label>
                                    <div class="col-sm-2">
                                        <select class="custom-select" v-model="editProductPriceRuleInfo.vipPriceBase">
                                            <option selected disabled value="">必填，请选择</option>
                                            <option value="1">成本价</option>
                                            <option value="2" v-if="editProductPriceRuleInfo.ruleType == '2002'">销售价
                                            </option>
                                            <option value="3" v-if="editProductPriceRuleInfo.ruleType == '2002'">市场价
                                            </option>
                                            <option value="4" v-if="editProductPriceRuleInfo.ruleType == '2002'">业主价
                                            </option>
                                            <option value="5" v-if="editProductPriceRuleInfo.ruleType == '2002'">会员价
                                            </option>
                                        </select>
                                    </div>
                                <div class="col-sm-7 padding-left-xs">
                                    <input v-model="editProductPriceRuleInfo.vipPrice" type="text"
                                        :placeholder="vc.i18n('百分之几','editProductPriceRule')" class="form-control">
                                </div>
                                <label class="col-form-label"><span>%</span></label>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='业主价:' namespace='editProductPriceRule'></vc:i18n>
                                    </span></label>
                                    <div class="col-sm-2">
                                        <select class="custom-select" v-model="editProductPriceRuleInfo.ownerPriceBase">
                                            <option selected disabled value="">必填，请选择</option>
                                            <option value="1">成本价</option>
                                            <option value="2" v-if="editProductPriceRuleInfo.ruleType == '2002'">销售价
                                            </option>
                                            <option value="3" v-if="editProductPriceRuleInfo.ruleType == '2002'">市场价
                                            </option>
                                            <option value="4" v-if="editProductPriceRuleInfo.ruleType == '2002'">业主价
                                            </option>
                                            <option value="5" v-if="editProductPriceRuleInfo.ruleType == '2002'">会员价
                                            </option>
                                        </select>
                                    </div>
                                <div class="col-sm-7 padding-left-xs">
                                    <input v-model="editProductPriceRuleInfo.ownerPrice" type="text"
                                        :placeholder="vc.i18n('百分之几','editProductPriceRule')" class="form-control">
                                </div>
                                <label class="col-form-label"><span>%</span></label>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='物业抵扣金:' namespace=' editProductPriceRule'></vc:i18n>
                                    </span></label>
                                <label class=" col-form-label"><span>
                                        <vc:i18n name='销售价-成本价的' namespace='editProductPriceRule'></vc:i18n>
                                    </span></label>
                                <div class="col-sm-7">
                                    <input v-model="editProductPriceRuleInfo.deduction" type="text"
                                        :placeholder="vc.i18n('百分之几','editProductPriceRule')" class="form-control">
                                </div>
                                <label class="col-form-label"><span>%</span></label>
                            </div>

                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                    v-on:click="editProductPriceRule()"><i class="fa fa-check"></i>&nbsp;<span>
                                        <vc:i18n name="保存"></vc:i18n>
                                    </span></button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                    data-dismiss="modal"><span>
                                        <vc:i18n name="取消"></vc:i18n>
                                    </span></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>